package cn.wen.mybatis;

import java.util.List;

public interface IMyBatisDao {

    MyBatisTemplate getTemplate();

    Object selectOne(String sqlMap);

    Object selectOne(String sqlMap, Object model);

    List<?> selectList(String sqlMap);

    List<?> selectList(String sqlMap, Object model);

    List<?> selectPagination(String sqlMap);

    List<?> selectPagination(String sqlMap, Object model);

    int delete(String sqlMap);

    int delete(String sqlMap, Object model);

    int insert(String sqlMap);

    int insert(String sqlMap, Object model);

    int update(String sqlMap);

    int update(String sqlMap, Object model);

    Object execute(DaoCallback callback);

}
